package gnv;
import java.sql.*;


public class ConexionDB {

	public ConexionDB() {
		
	}
	
	
	public static Connection dbConnect() throws Exception, SQLException {
		Class.forName("com.mysql.jdbc.Driver").newInstance();
		Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/gnv1", "", "");
		return conn;
	}
	

	public static boolean isValidConnection(Connection db){
	  	
		if (db == null){
			return false;
		}
		return true;
	}
	
	

}
